home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Geek Games #12
/
GEGA012.iso
/
Jogos de Azar
/
blackjack1.swf
/
scripts
/
frame_15
/
DoAction.as
Wrap
Text File
|
2006-01-17
|
2KB
|
95 lines
function Player_score_start(ps1)
{
set("Pcard" + i,ps1);
i++;
Pvalue = Pcard0 + Pcard1 + Pcard2 + Pcard3 + Pcard4 + Pcard5 + Pcard6;
Pace = 0;
if(Pcard0 == 11)
{
Pace++;
}
if(Pcard1 == 11)
{
Pace++;
}
if(Pcard2 == 11)
{
Pace++;
}
if(Pcard3 == 11)
{
Pace++;
}
if(Pcard4 == 11)
{
Pace++;
}
if(Pcard5 == 11)
{
Pace++;
}
if(Pcard6 == 11)
{
Pace++;
}
}
function Player_score_finish()
{
Pvalue = Pcard0 + Pcard1 + Pcard2 + Pcard3 + Pcard4 + Pcard5 + Pcard6;
if(Pace >= 1)
{
_root.scorePlayer.gotoAndStop("11");
Pmaster = 0;
if(Pace == 1)
{
Pmaster1 = Pvalue - 10;
Pmaster2 = Pvalue;
_root.scorePlayer.score1a = Pmaster1;
_root.scorePlayer.score1b = Pmaster2;
}
if(Pace == 2)
{
Pmaster1 = Pvalue - 20;
Pmaster2 = Pvalue;
_root.scorePlayer.score1a = Pmaster1;
_root.scorePlayer.score1b = Pmaster2;
}
if(Pace == 3)
{
Pmaster1 = Pvalue - 30;
Pmaster2 = Pvalue;
_root.scorePlayer.score1a = Pmaster1;
_root.scorePlayer.score1b = Pmaster2;
}
if(Pace == 4)
{
Pmaster1 = Pvalue - 40;
Pmaster2 = Pvalue;
_root.scorePlayer.score1a = Pmaster1;
_root.scorePlayer.score1b = Pmaster2;
}
}
if(0 >= Pace)
{
Pmaster = Pvalue;
_root.scorePlayer.score1 = Pmaster;
}
if(Pmaster == 0)
{
if(Pmaster2 >= 22)
{
Ptotal = Pmaster1;
}
if(21 >= Pmaster2)
{
Ptotal = Pmaster2;
}
}
else
{
Ptotal = Pmaster;
}
guessWhoPlayer();
}
i = 0;